package com.doit.demo02;

import java.util.Iterator;

public class test {
    public static void main(String[] args) {
        MyArrayList<String> list = new MyArrayList<>();
        list.add("sdf");
        list.add("sf");
        Iterator<String>it=list.iterator();
        while (it.hasNext()){
            String s = it.next();
            System.out.println(s);
        }
        System.out.println(list.get(0).hashCode());
    }
}
